package com.jumi.microservice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品sku分仓库存表
 * </p>
 *
 * @author liuz
 * @since 2020-08-11
 */
@TableName("inventory_goods_warehouse_stock")
@ApiModel(value="GoodsWarehouseStock对象", description="商品sku分仓库存表")
public class GoodsWarehouseStockDO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品sku id")
    private Long goodsSkuId;

    @ApiModelProperty(value = "商品sku编码")
    private String goodsSkuCode;

    @ApiModelProperty(value = "仓库id")
    private Long warehouseId;

    @ApiModelProperty(value = "仓库id")
    private String warehouseName;

    @ApiModelProperty(value = "销售库存")
    private Integer saleStockQuantity = 0;

    @ApiModelProperty(value = "锁定库存")
    private Integer lockedStockQuantity = 0;

    @ApiModelProperty(value = "已销售库存")
    private Integer saledStockQuantity = 0;

    @ApiModelProperty(value = "并发版本控制")
    @Version
    private Integer version;

    @ApiModelProperty("申请ID")
    private Long supplyApplyId;

    /**
     * 补货库存
     */
    @ApiModelProperty(value = "补货库存")
    private Integer replenishStorage = 0;

    /**
     * sku初始的补货库存
     */
    @ApiModelProperty(value = "sku初始的补货库存")
    private Integer initialReplenishStorage = 0;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsSkuId() {
        return goodsSkuId;
    }

    public void setGoodsSkuId(Long goodsSkuId) {
        this.goodsSkuId = goodsSkuId;
    }

    public String getGoodsSkuCode() {
        return goodsSkuCode;
    }

    public void setGoodsSkuCode(String goodsSkuCode) {
        this.goodsSkuCode = goodsSkuCode;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    @ApiModelProperty(value = "添加时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    public Integer getSaleStockQuantity() {
        return saleStockQuantity;
    }

    public void setSaleStockQuantity(Integer saleStockQuantity) {
        this.saleStockQuantity = saleStockQuantity;
    }

    public Integer getLockedStockQuantity() {
        return lockedStockQuantity;
    }

    public void setLockedStockQuantity(Integer lockedStockQuantity) {
        this.lockedStockQuantity = lockedStockQuantity;
    }

    public Integer getSaledStockQuantity() {
        return saledStockQuantity;
    }

    public void setSaledStockQuantity(Integer saledStockQuantity) {
        this.saledStockQuantity = saledStockQuantity;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getReplenishStorage() {
        return replenishStorage;
    }

    public void setReplenishStorage(Integer replenishStorage) {
        this.replenishStorage = replenishStorage;
    }

    public Integer getInitialReplenishStorage() {
        return initialReplenishStorage;
    }

    public void setInitialReplenishStorage(Integer initialReplenishStorage) {
        this.initialReplenishStorage = initialReplenishStorage;
    }

    public Long getSupplyApplyId() {
        return supplyApplyId;
    }

    public void setSupplyApplyId(Long supplyApplyId) {
        this.supplyApplyId = supplyApplyId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }
}
